//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright 2006 CORE Solutions Limited
// All rights reserved.
// PROPRIETARY AND CONFIDENTIAL INFORMATION.
// Use is subject to license terms.
//
// FUNCTION ID      :   BODY
// AUTHOR           :   Ric Yik 
// DATE CREATE      :   2006/06/12
// DESCRIPTION      :   a ROW file for the function, BODY
//                  :   
//                  :   
//                  :   
//
// MODIFICATION HISTORY:
// DATE         AUTHOR          VERSION NO.         COMMENT
// -----------  --------------  ------------------  -------------------
// 2006/06/12   Ric Yik         1.0                 source is generated.
//
//
//
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

package com.erp.common.web;

import com.erp.framework.controller.form.MultiRowTemplate;
import com.erp.framework.util.CommonUtil;
import com.erp.framework.types.*;
import com.erp.app.common.itemTask.pk.ItemTaskApprovalPk;

/**
* <p>A <strong>Row</strong> is a JavaBean which provides property
* getter and setter methods for all of the bean properties, and implements
* <code>Serializable</code>, as required by the JavaBean specification
* The main purpose for this bean is to store the detail childs.
*
* @author          Ric Yik 
* @version 1.0     2006/06/12
* @since           FrameWork 1.0
*
*/
public class ItemTaskApprovalRow extends MultiRowTemplate {

	//DB Table Name: T_ITEM_TASK_APPROVAL

	//PK Attributes
	private String companyCode = "";                                                                   //DB Column Name: COMPANY_CODE
	private String documentNo = "";                                                                    //DB Column Name: DOCUMENT_NO
	private String documentType = "";                                                                  //DB Column Name: DOCUMENT_TYPE
    private String approvalTaskLineNo = "";                                                                        //DB Column Name: LINE_NO
	private String approvalLineNo = "";                                                                //DB Column Name: APPROVAL_LINE_NO

	//Other Attributes
	private String approvalStatus = "";                                                                //DB Column Name: STATUS
	private String approvalCompleteDate = "";                                                          //DB Column Name: COMPLETE_DATE
	private String approvalRemarks = "";                                                               //DB Column Name: REMARKS
	private String approvalDcInd = "";                                                                 //DB Column Name: DC_IND
	private String approvalDcDate = "";                                                                //DB Column Name: DC_DATE
	private String createUser = "";                                                                    //DB Column Name: CREATE_USER
	private String createDate = "";                                                                    //DB Column Name: CREATE_DATE
	private String updateUser = "";                                                                    //DB Column Name: UPDATE_USER
	private String updateDate = "";                                                                    //DB Column Name: UPDATE_DATE

	/**
	* Converts to a string representing the data in this object.
	* A new <code>String</code> object is allocated and initialized to 
	* contain the character sequence currently represented by this 
	* object. This <code>String</code> is then returned. Subsequent 
	* changes to this object do not affect the contents of the 
	* <code>String</code>. 
	*
	* @return     a string representation of the object.
	* @see        java.lang.Object#toString()
	* @author     Ric Yik 
	* @since      Framework 1.0
	*/
	public String toString() {
		String pkStr = "PK: {companyCode = " + this.companyCode
			+ "\n, documentNo = " + this.documentNo
			+ "\n, documentType = " + this.documentType
            + "\n, approvalTaskLineNo = " + this.approvalTaskLineNo
			+ "\n, approvalLineNo = " + this.approvalLineNo + "}\n";
		String colStr = "COL: {approvalStatus = " + this.approvalStatus
			+ "\n, approvalCompleteDate = " + this.approvalCompleteDate
			+ "\n, approvalRemarks = " + this.approvalRemarks
			+ "\n, approvalDcInd = " + this.approvalDcInd
			+ "\n, approvalDcDate = " + this.approvalDcDate
			+ "\n, createUser = " + this.createUser
			+ "\n, createDate = " + this.createDate
			+ "\n, updateUser = " + this.updateUser
			+ "\n, updateDate = " + this.updateDate + "}\n";
		return "ItemTaskApprovalRow.toString() is:\n" + pkStr + colStr;
	}

	////////////////////////////////////////////////////////////////////////////////
	//Generated Accessors (get/set methods)
	////////////////////////////////////////////////////////////////////////////////

	public String getCompanyCode() {
		return this.companyCode;
	}

	public String getDocumentNo() {
		return this.documentNo;
	}

	public String getDocumentType() {
		return this.documentType;
	}

	public String getApprovalLineNo() {
		return this.approvalLineNo;
	}

	public String getApprovalStatus() {
		return this.approvalStatus;
	}

	public String getApprovalCompleteDate() {
		return this.approvalCompleteDate;
	}

	public String getApprovalRemarks() {
		return this.approvalRemarks;
	}

	public String getApprovalDcInd() {
		return this.approvalDcInd;
	}

	public String getApprovalDcDate() {
		return this.approvalDcDate;
	}

	public String getCreateUser() {
		return this.createUser;
	}

	public String getCreateDate() {
		return this.createDate;
	}

	public String getUpdateUser() {
		return this.updateUser;
	}

	public String getUpdateDate() {
		return this.updateDate;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = CommonUtil.toCode(companyCode);
	}

	public void setDocumentNo(String documentNo) {
		this.documentNo = CommonUtil.toCode(documentNo);
	}

	public void setDocumentType(String documentType) {
		this.documentType = CommonUtil.toCode(documentType);
	}

	public void setApprovalLineNo(String approvalLineNo) {
		this.approvalLineNo = CommonUtil.toCode(approvalLineNo);
	}

	public void setApprovalStatus(String approvalStatus) {
		this.approvalStatus = CommonUtil.trim(approvalStatus);
	}

	public void setApprovalCompleteDate(String approvalCompleteDate) {
		this.approvalCompleteDate = CommonUtil.trim(approvalCompleteDate);
	}

	public void setApprovalRemarks(String approvalRemarks) {
		this.approvalRemarks = CommonUtil.trim(approvalRemarks);
	}

	public void setApprovalDcInd(String approvalDcInd) {
		this.approvalDcInd = CommonUtil.trim(approvalDcInd);
	}

	public void setApprovalDcDate(String approvalDcDate) {
		this.approvalDcDate = CommonUtil.trim(approvalDcDate);
	}

	public void setCreateUser(String createUser) {
		this.createUser = CommonUtil.trim(createUser);
	}

	public void setCreateDate(String createDate) {
		this.createDate = CommonUtil.trim(createDate);
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = CommonUtil.trim(updateUser);
	}

	public void setUpdateDate(String updateDate) {
		this.updateDate = CommonUtil.trim(updateDate);
	}

	////////////////////////////////////////////////////////////////////////////////
	//Other Accessors (get/set methods)
	////////////////////////////////////////////////////////////////////////////////

	public String getApprovalTaskLineNo() {
        return approvalTaskLineNo;
    }

    public void setApprovalTaskLineNo(String lineNo) {
        this.approvalTaskLineNo = lineNo;
    }

    public ItemTaskApprovalPk getPk() {
		return new ItemTaskApprovalPk(String.valueOf(this.getCompanyCode()), String.valueOf(this.getDocumentNo()), String.valueOf(this.getDocumentType()), CustomBigInteger.customize(this.getApprovalTaskLineNo()), CustomBigInteger.customize(this.getApprovalLineNo()));
	}
}
